package cn.stylefeng.guns.sys.modular.tao.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 优惠券表
 * </p>
 *
 * @author 
 * @since 2019-08-21
 */
@TableName("tao_coupon")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 优惠券编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 优惠券名称
     */
    @TableField("coupon_name")
    private String couponName;

    /**
     * 是否开启 0【开启】1 【关闭】
     */
    @TableField("is_open")
    private Integer isOpen;

    /**
     * 优惠方式 1【立减】2【折扣】
     */
    @TableField("discount_type")
    private Integer discountType;

    /**
     * 发放总量
     */
    @TableField("send_number")
    private Integer sendNumber;

    /**
     * 满足金额
     */
    @TableField("satisty_money")
    private BigDecimal satistyMoney;

    /**
     * 优惠金额
     */
    @TableField("discount_money")
    private BigDecimal discountMoney;

    /**
     * 优惠折扣
     */
    @TableField("discount")
    private BigDecimal discount;

    /**
     * 开始时间
     */
    @TableField("start_time")
    private String startTime;

    /**
     * 结束时间
     */
    @TableField("end_time")
    private String endTime;

    /**
     * 优惠券介绍
     */
    @TableField("coupon_desc")
    private String couponDesc;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    public Integer getUsableRange() {
        return usableRange;
    }

    public void setUsableRange(Integer usableRange) {
        this.usableRange = usableRange;
    }

    @TableField("usable_range")
    private Integer usableRange;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public Integer getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(Integer isOpen) {
        this.isOpen = isOpen;
    }

    public Integer getDiscountType() {
        return discountType;
    }

    public void setDiscountType(Integer discountType) {
        this.discountType = discountType;
    }

    public Integer getSendNumber() {
        return sendNumber;
    }

    public void setSendNumber(Integer sendNumber) {
        this.sendNumber = sendNumber;
    }

    public BigDecimal getSatistyMoney() {
        return satistyMoney;
    }

    public void setSatistyMoney(BigDecimal satistyMoney) {
        this.satistyMoney = satistyMoney;
    }

    public BigDecimal getDiscountMoney() {
        return discountMoney;
    }

    public void setDiscountMoney(BigDecimal discountMoney) {
        this.discountMoney = discountMoney;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getCouponDesc() {
        return couponDesc;
    }

    public void setCouponDesc(String couponDesc) {
        this.couponDesc = couponDesc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Coupon{" +
        "id=" + id +
        ", couponName=" + couponName +
        ", isOpen=" + isOpen +
        ", discountType=" + discountType +
        ", sendNumber=" + sendNumber +
        ", satistyMoney=" + satistyMoney +
        ", discountMoney=" + discountMoney +
        ", discount=" + discount +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", couponDesc=" + couponDesc +
        ", createTime=" + createTime +
        "}";
    }
}
